package com.biz.primus.management.order.feign;


import com.biz.primus.management.order.degraded.DegradedStockFeignClient;
import com.biz.primus.model.stock.vo.DepotMeetStockRespVo;
import com.biz.primus.model.stock.vo.NearMeetStockDepotReqVo;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * @author zzy
 * @rema 已派单控制层调用接口
 * @date 2017/11/14/009
 */
@FeignClient(qualifier = "stockFeignClient", name = "service-stock", fallback = DegradedStockFeignClient.class)
public interface StockFeignClient {

    /**
     * 获取指定门店附近满足库存的门店
     * @param reqVo
     * @return
     */
    @PostMapping(value = "soa/stockService/getNearMeetStockDepots")
    List<DepotMeetStockRespVo> getNearMeetStockDepots(@RequestBody NearMeetStockDepotReqVo reqVo);

}
